import api from '../utils/http.js'

// 获取当前课程信息
const getStudentList =  (data) =>{
  return api.get('/selectStudent',data)
}

// 获取一条数据
const getOneStudent =  (data) =>{
  return api.get('/getOneStudent',data)
}

// 根据ID 删除课程
const deleteStudentById =  (data) =>{
  return api.get('/deleteStudentById',data)
}

// 根据ID 更新课程
const updateStudentById =  (data) =>{
  return api.get('/updateStudentById',data)
}

// 根据ID 更新课程
const addStudentBy =  (data) =>{
  return api.post('/addStudentBy',data)
}

 

export default {   getStudentList,getOneStudent,deleteStudentById,updateStudentById,addStudentBy}